import Vue from 'vue'
import VueRouter from 'vue-router'
import About from '../pages/About.vue'
import Home from '../pages/Home.vue'

Vue.use(VueRouter)

// 定义并暴露一个router（路由器）
export default new VueRouter({
    mode:'history',
    routes:[
        {path:'/about',component:About},
        {path:'/home',component:Home}
    ]
})